package si.yun.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import si.yun.utils.Operationlog;

/**
 * @ClassName: 添加操作日志
 * @Description: TODO
 * @Author: 李振海
 * @Date 2021/8/6 14:42
 */
@Controller
@RequestMapping("OperationlogController")
public class OperationlogController {


    @Autowired
    private Operationlog Operationlog;
    /**
     * @Author : 李振海
     * @Date : 2021/8/6 14:46
     * @Param : [mid, tablename, type]
     * @Return : int
     */
    @ResponseBody
    @RequestMapping("addOperationlog")
    public int addOperationlog(String mid,String tablename,String type){
        int operationlog = Operationlog.Operationlog(mid, tablename, type);
        return operationlog;
    }


}
